package com.ldl.exam.service;

import com.github.pagehelper.PageInfo;
import com.ldl.exam.entity.Stu;
import com.ldl.exam.entity.StuExample;
import com.ldl.exam.exception.ExamException;

/**
 * @author liudaolin
 * @version 1.0
 * @date 2022/10/02 15:22:24
 */
public interface StuService {

    // 已测
    Stu login(String loginName, String pwd) throws ExamException;

    // 已测
    void register(Stu stu, String rePwd) throws ExamException;

    void modifyStuInfo(Stu stu) throws ExamException;

    void modifyPwd(Integer stuId, String oldPwd, String newPwd, String rePwd) throws ExamException;

    PageInfo<Stu> findByPage(int pageNum, int pageSize, StuExample example);

    void modifyStatusById(Integer stuId, Integer status);
}
